package com.wenli.lt.entity;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author l&t
 * @version 1.0
 * @date 2021/3/21 21:45
 */
@Data
public class Menu {
    /**
     * id
     */
    public String id;
    /**
     * 名称
     */
    public String label;

    public Boolean disabled;
    /**
     * 父id ，根节点为0
     */
    public String parentId;
    /**
     * 子节点信息
     */
    public List<Menu> children;

    public Menu(String id, String label, Boolean disabled, String parentId) {
        this.id = id;
        this.label = label;
        this.disabled = disabled;
        this.parentId = parentId;
    }

    public Menu(String id, String label, String parentId, List<Menu> children) {
        this.id = id;
        this.label = label;
        this.parentId = parentId;
        this.children = children;
    }

}
